const linkService = require("@/server/friend_link");
const { successData, sendCode } = require("@/utils/r/result");

const link = {
  async GetList(req, res) {
    successData(res, await linkService.GetList(req.query));
  },
  async SaveOrUpdate(req, res) {
    sendCode(res, await linkService.SaveOrUpdate(req.body));
  },
  async Delete(req, res) {
    successData(res, await linkService.Delete(req.body));
  },
};

module.exports = link;
